package cn.edu.scau.disk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;

@Data
@TableName("disk")
public class Disk {

//    @TableId
    @TableId(type = IdType.AUTO)
    private Integer id;

    private byte[] value;

    public byte[] getValue() {
        return value;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setValue(byte[] value) {
        this.value = value;
    }

    public Disk(Integer id, byte[] value) {
        this.id = id;
        this.value = value;
    }
}
